RSLogix 500 Math Instructions

Published on May31, 2021 | Category: instructions
Share this article:

output instruction and perfom aritmatic operation such as addition, subtruction, multification, divison etc.The majority of the instructions take two input values, perform the specified arithmetic function, store the result at specified or assigned address.

these instruction are output instruction and perfom aritmatic operation such as addition, subtruction, multiplication, divison etc. The majority of the instructions take two input values, perform the specified arithmetic function, store the result at specified or assigned address. result of the operation exceeds the allowable value, an overflow or underflow bit is set this os called Arithmetic Status Bits. The arithmetic status bits are in word 0 bits 0-3 in the processor status file.

RSLOGIX 500 ADD , Addition Instructions

When rung conditions are true, this output instruction add Source A and Source B values and stores the result of addition into the destination address. Source A and Source B can either be constant values or address.

img/rsadd.webp

RSLOGIX 500 SUB, Subtract instruction

When rung conditions are true,SUB instruction subtract value of source B from another value of source A and place the result in the dest address. Source A and Source B can either be values or addresses that contain values.

img/sub.webp

RSLOGIX 500 MUL, Multiplication instruction

When rung conditions are true,multiply MUL instruction multiply value of source B from another value of source A and place the result in the dest address. Source A and Source B can either be values or addresses that contain values.

img/mul.webp

RSLOGIX 500 DIV, Divide instruction

When rung conditions are true,Divide DIV instruction Divide value of source B from another value of source A and place the result in the dest address. Source A and Source B can either be values or addresses that contain values.

img/div.webp

RSLOGIX 500 SQRT, Square Root instruction

When rung conditions are true, this output instruction calculates the square root of the absolute value of the source and places the rounded result in the destination.

img/sqrt.webp

RSLOGIX 500 NEG, Negate instrucntion

When rung conditions are true, this instrucntion change the sign of source value and store in destination address. for example if source value is 122 than destination store -127.

img/neg.webp